package com.demo.pattern.proxy.staticProxy;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2022-05-26 22:28
 * @Description: RentingHouseProxy$
 */
public class RentingHouseProxy implements IRentingHouse{
	private IRentingHouse rentingHouse;

	public RentingHouseProxy(IRentingHouse rentingHouse){
		this.rentingHouse = rentingHouse;
	}
	@Override
	public void rentHouse() {
		System.out.println("中介(代理)收取服务费3000元");
		rentingHouse.rentHouse();
		System.out.println("客户信息买了3元");
	}
}
